<script>
export default {
  methods: {
    handleClick() {
      this.$router.push({
        name: 'details',
        params: {
          id: 300
        }
      })
    }
  },

  // beforeRouteEnter(to, from, next) {
  //   next((vm) => {
  //     console.log(vm)
  //   })
  // }
}
</script>

<template>
  <div>
    <button @click="handleClick">click</button>
  </div>
</template>

<style lang="scss">
  
</style>
